/**
 * Created by dinghh on 2018-7-11.
 */
angular.module('MetronicApp').controller('StatisticsController',
    ['$rootScope', '$scope', '$state', '$uibModal', 'toastr','$location','$stateParams', 'FileStorageService', 'StatisticsService',
        function ($rootScope, $scope, $state, $uibModal, toastr,$location,$stateParams, FileStorageService, StatisticsService) {
            $scope.$on('$viewContentLoaded', function () {
                App.initAjax();
                $rootScope.settings.layout.pageBodySolid = true;
                $rootScope.settings.layout.pageSidebarClosed = false;

                $scope.typeList = [];

                //tab页切换
                $scope.tabItemList = [
                    {
                        "name": "环保智库",
                        "router": "thinkTank",
                        "selected": false
                    },
                    {
                        "name": "配置管理",
                        "router": "deploy",
                        "selected": false
                    },
                    {
                        "name": "统计",
                        "router": "statistics",
                        "selected": true
                    }
                ];

            });
        }
    ]
);